package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class GoodsAllKind implements Serializable {
    List list;

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }



    public GoodsAllKind(){};
    public GoodsAllKind(Integer goodsId, String goodsKindone) {
        this.goodsId = goodsId;
        this.goodsKindone = goodsKindone;
    }

    public GoodsAllKind(String goodsKindone) {
        this.goodsKindone = goodsKindone;
    }

    /**
     *
     *二级分类id
     */
    private Integer id;

    /**
     *
     *商品id
     */
    @NotNull
    private Integer goodsId;

    /**
     *
     *商品分类
     */
    @NotNull
    private String goodsKindone;

    @Override
    public String toString() {
        return "GoodsAllKind{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", goodsKindone='" + goodsKindone + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsKindone() {
        return goodsKindone;
    }

    public void setGoodsKindone(String goodsKindone) {
        this.goodsKindone = goodsKindone == null ? null : goodsKindone.trim();
    }
}